import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    hmr: true // 开启热更新
  },
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src')     // 配置别名
    }
  },
  plugins: [vue()],
  esbuild: {
    jsxFactory: 'h',
    jsxFragment: 'Fragment',
  },
})
